package com.warren.biz.service.impl;

import com.warren.biz.entity.Supplier;
import com.warren.biz.mapper.SupplierMapper;
import com.warren.biz.service.SupplierService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author warren
 * @since 2021-04-20
 */
@Service
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements SupplierService {

    @Override
    public Supplier add(Supplier supplier) {
        this.baseMapper.insert(supplier);
        return supplier;
    }
}
